<template>
	<view class="wrap">
		<view style="height: 100upx;"></view>
		<view class="flex flex-wrap justify-center">
			<view class="justify-center">
				<button class="cu-btn bg-red margin-tb-sm lg" @tap="scanCode">扫码盘点</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				needShow: false,
				user:{
					name:'',
					password:''
				},
				serverInfo:{
					ip:'',
					port:''
				},
				serverInfoCached:true,
				msg:'提示信息'
			}
		},methods:{
			scanCode(){
				uni.scanCode({
					
					success: function (res) {
						console.log('条码类型：' + res.scanType);
						console.log('条码内容：' + res.result);
					},fail:function(res){
						console.log("dsss"+JSON.stringify(res))
					}
				});
			}
		}
	}
</script>
	
<style>
</style>